import request from '@/utils/request'

// 发送聊天消息
export function sendChatMessage (data) {
    return request({
        url: '/api/chat',
        method: 'post',
        data: data
    })
}

// 获取聊天历史
export function getChatHistory (query) {
    return request({
        url: '/api/chat/history',
        method: 'get',
        params: query
    })
} 